<template>
  <div id="app">
    <div id="large-header" class="large-header">
      <canvas id="demo-canvas"></canvas>
    </div>
    <router-view/>
    <div id="landlord">
      <div class="message" style="opacity:0"></div>
        <canvas id="live2d" width="280" height="250" class="live2d"></canvas>
      <div class="hide-button">隐藏</div>
    </div>
  </div>
</template>

<script>
import '@/components/common/canvas/demo-1.js'
export default {
  name: 'App',
  created() {
    try {
      document.body.removeChild(document.getElementById('spinner'))
      setTimeout(function() {
        loadlive2d("live2d", "static/live2d/model/tia/model.json");
        document.getElementById('app').style.display = 'block';
      }, 500)
    } catch (e) {

    }
  }
};
</script>

<style lang="less">
@import './styles/less/common.less';

#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
</style>
